package com.example.springbootdatamock.bean;

import java.math.BigDecimal;

public class ProvinceStat {
    private String province;
    private BigDecimal saleAmount;
    private Integer totalOrderCount;

    public void setProvince(String province) {
         this.province = province;
    }

    public void setSaleAmount(BigDecimal saleAmount) {
        this.saleAmount = saleAmount;
    }

    public void setTotalOrderCount(Integer totalOrderCount) {
        this.totalOrderCount = totalOrderCount;
    }

    public boolean equals(Object o) {
        if (o == this) return true;
        if (!(o instanceof com.example.springbootdatamock.bean.ProvinceStat)) return false;
        com.example.springbootdatamock.bean.ProvinceStat other = (com.example.springbootdatamock.bean.ProvinceStat) o;
        if (!other.canEqual(this)) return false;
        Object this$totalOrderCount = getTotalOrderCount(), other$totalOrderCount = other.getTotalOrderCount();
        if ((this$totalOrderCount == null) ? (other$totalOrderCount != null) : !this$totalOrderCount.equals(other$totalOrderCount))
            return false;
        Object this$province = getProvince(), other$province = other.getProvince();
        if ((this$province == null) ? (other$province != null) : !this$province.equals(other$province)) return false;
        Object this$saleAmount = getSaleAmount(), other$saleAmount = other.getSaleAmount();
        return !((this$saleAmount == null) ? (other$saleAmount != null) : !this$saleAmount.equals(other$saleAmount));
    }

    protected boolean canEqual(Object other) {
        return other instanceof com.example.springbootdatamock.bean.ProvinceStat;
    }

    public int hashCode() {
        int PRIME = 59;
        int result = 1;
        Object $totalOrderCount = getTotalOrderCount();
        result = result * 59 + (($totalOrderCount == null) ? 43 : $totalOrderCount.hashCode());
        Object $province = getProvince();
        result = result * 59 + (($province == null) ? 43 : $province.hashCode());
        Object $saleAmount = getSaleAmount();
        return result * 59 + (($saleAmount == null) ? 43 : $saleAmount.hashCode());
    }

    public String toString() {
        return "ProvinceStat(province=" + getProvince() + ", saleAmount=" + getSaleAmount() + ", totalOrderCount=" + getTotalOrderCount() + ")";
    }

    public ProvinceStat(String province, BigDecimal saleAmount, Integer totalOrderCount) {
        this.province = province;
        this.saleAmount = saleAmount;
        this.totalOrderCount = totalOrderCount;
    }

    public ProvinceStat() {
    }


    public String getProvince() {
        return this.province;
    }


    public BigDecimal getSaleAmount() {
        return this.saleAmount;
    }

    public Integer getTotalOrderCount() {
        return this.totalOrderCount;
    }
}



 